package org.csu.code.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@TableName("sequence")
public class Sequence {
    @TableId(value = "name",type = IdType.INPUT)
    private String name;
    private int nextid;

    public Sequence() {
    }

    public Sequence(String name, int nextid) {
        this.name = name;
        this.nextid = nextid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNextId() {
        return nextid;
    }

    public void setNextId(int nextid) {
        this.nextid = nextid;
    }
}
